Skip to content

fix: skip local runtime checks for gen types --db-url#5345

Open
surajshekhar wants to merge 1 commit into
supabase:developfrom
surajshekhar:fix-gen-types-db-url
Open

fix: skip local runtime checks for gen types --db-url#5345
surajshekhar wants to merge 1 commit into
supabase:developfrom
surajshekhar:fix-gen-types-db-url

Conversation

@surajshekhar
Copy link
Copy Markdown

What kind of change does this PR introduce?

Bug fix.

What is the current behavior?

supabase gen types --db-url ... still attempts to load local Supabase runtime/profile state and fails with:

supabase start is not running

even when a direct PostgreSQL connection URL is explicitly provided.

Fixes #5283

What is the new behavior?

When --db-url is explicitly provided, the CLI now bypasses local runtime validation and directly uses the supplied PostgreSQL connection.

This prevents unnecessary:

  • local profile loading
  • local runtime checks
  • dependency on supabase start

Additional context

The fix adds explicit detection for --db-url usage in the command flow and skips local runtime validation in the legacy Go type generation path.

Added targeted regression coverage for the --db-url bypass behavior in internal/gen/types/types_test.go.

@surajshekhar surajshekhar requested a review from a team as a code owner May 23, 2026 12:10
@surajshekhar surajshekhar marked this pull request as draft May 24, 2026 15:15
@surajshekhar surajshekhar marked this pull request as ready for review May 24, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gen types --db-url still requires local supabase start state (fails with "supabase start is not running")

1 participant